package com.efivestar.idm.api.common;

public class Cons {

    /**
     * 指纹锁.
     */
    public static final int LOCK = 2;
    /**
     * 摄像头
     */
    public static final int CAMERA = 1;

//    udp网络包解析
    public static final String UDP_HEAD_EF01 = "EF01";

    public static final String UDP_HEAD_EF02 = "EF02";

    public static final String USER_LOCK_REMOTE_CONTROL_PASSWORD_SALT = "fdsafdijor3298u49823kjhfdiojeiwjioor43";


    /**
     * 低电量.
     */
    public static int LOWER_POWER = 1;

    /**
     * 正常电量.
     */
    public static int COMMON_POWER = 0;

    /**
     * 布防状态.
     */
    public static int DEFENSE_ON_STATUS  = 1;

    /**
     * 撤防状态.
     */
    public static int DEFENSE_OFF_STATUS  = 0;

    //**********指令码************************

    /**
     * 配网指令码的十六进制标识.
     */
    public static final String UDP_COMMAND_NET_PAIR = "C8";

    /**
     * 增加用户指令码的十六进制标识.
     */
    public static final String UDP_COMMAND_ADD_USER = "C0";

    /**
     * 删除用户指令码的十六进制标识.
     */
    public static final String UDP_COMMAND_DELET_USER = "C1";

    /**
     * 修改密码指令码的十六进制标识.
     */
    public static final String UDP_COMMAND_CHANGE_PASSWORD = "C2";
    /**
     * 开门指令码的十六进制标识.
     */
    public static final String UDP_COMMAND_OPEN_DOOR = "C3";

    /**
     * 恢复出厂设置指令码的十六进制标识.
     */
    public static final String UDP_COMMAND_RESET = "C4";

    /**
     * 报警指令码的十六进制标识.
     */
    public static final String UDP_COMMAND_WARNING = "C5";


    /**
     * 提醒指令码的十六进制标识.
     */
    public static final String UDP_COMMAND_NOTIFICATION = "C6";



    /**
     * 设置防御状态指令码的十六进制标识.
     */
    public static final String UDP_COMMAND_DEFENSE = "C7";

    /**
     * 心跳包指令码的十六进制标识.
     */
    public static final String UDP_COMMAND_HEART_BEAT = "C9";

    /**
     * 设置地址指令码的十六进制标识.
     */
    public static final String UDP_COMMAND_SET_ADDRESS = "CA";

    /**
     * 请求临时指令码的十六进制标识.
     */
    public static final String UDP_COMMAND_REQUEST_TEMP_PASSWORD = "CB";


    /**
     * 请求远程开锁指令码的十六进制标识.
     */
    public static final String UDP_COMMAND_REQUEST_OPEN_DOOR = "CC";

    /**
     * 是否允许远程开锁转台查询的十六进制标识.
     */
    public static final String UDP_COMMAND_REMOTE_DOOR_CONOTROL_STATUS = "55";



    /**
     * 是否允许远程开锁转台查询的十六进制标识.
     */
    public static final String UDP_COMMAND_REMOTE_OPEN_DOOR_REPLY = "00";



    //**********指纹锁事件类型************************

    /**
     * 开门事件类型.
     */
    public static final int OPEN_DOOR_EVENT_TYPE = 1;

    /**
     * 报警事件类型.
     */
    public static final int WARNING_EVENT_TPE = 2;

    /**
     * 提醒事件类型.
     */
    public static final int NOTIFICATION_EVENT_TPE = 3;

    /**
     * 增加用户事件类型.
     */
    public static final int ADDUSER_EVENT_TPE = 4;

    /**
     * 修改密码事件类型.
     */
    public static final int CHANGE_PASSWORD_EVENT_TPE = 5;

    /**
     * 删除用户事件类型.
     */
    public static final int DELETEUSER_EVENT_TPE = 6;

    /**
     * 请求临时密码事件类型.
     */
    public static final int REQUEST_TEMP_PASSWORD_EVENT_TPE = 7;


    /**
     * 请求远程开锁事件类型.
     */
    public static final int REQUEST_OPEN_DOOR_EVENT_TPE = 8;


    /**
     * 恢复出厂设置事件类型.
     */
    public static final int RESET_DOOR_EVENT_TPE = 9;

    /**
     * 防御事件类型.
     */
    public static final int DEFENCE_EVENT_TPE = 10;


    //***********    开锁的具体事件 ************
    /**
     * 指纹开门事件.
     */
    public static final int OPEN_DOOR_BY_FIGURE_EVENT = 1;

    /**
     * 密码开门事件.
     */
    public static final int OPEN_DOOR_BY_PASSWORD_EVENT = 2;

    /**
     * 卡开门事件.
     */
    public static final int OPEN_DOOR_BY_CARD_EVENT = 3;

    /**
     * 钥匙开门事件.
     */
    public static final int OPEN_DOOR_BY_KEY_EVENT = 4;

    /**
     * 遥控开门事件.
     */
    public static final int OPEN_DOOR_BY_REMOTE_CONTROL_EVENT = 5;

    /**
     * 微信远程开门事件.
     */
    public static final int OPEN_DOOR_BY_WEIXIN_REMOTE_EVENT = 101;

    //********警告 的具体事件 ********
    /**
     * 智能锁被撬事件.
     */
    public static final int INTELLIGENT_LOG_LEVER_EVENT = 6;


    /**
     * 强行开门事件.
     */
    public static final int FORCE_DOOR_EVENT = 7;

    /**
     * 指纹开锁被冻结事件.
     */
    public static final int FIGURE_FAILURE_LOCKED_EVENT = 8;


    /**
     * 密码开锁被冻结事件.
     */
    public static final int PASSWORD_FAILURE_LOCKED_EVENT = 9;

    /**
     * 卡开锁被冻结事件.
     */
    public static final int CARD_FAILURE_LOCKED_EVENT = 10;

    /**
     * 钥匙开锁被冻结事件.
     */
    public static final int KEY_FAILURE_LOCKED_EVENT = 11;

    /**
     * 遥控开锁被冻结事件.
     */
    public static final int REMOTE_CONTROL_FAILURE_LOCKED_EVENT = 12;

    /**
     * 低电量电压报警事件.
     */
    public static final int LOW_POWER_EVENT = 13;


    //********提醒 的具体事件 ********

    /**
     * 忘拔钥匙提醒.
     */
    public static final int FORGET_TAKE_KEY_NOTIFICATION_EVENT = 14;

    /**
     * 锁门提醒.
     */
    public static final int LOCK_DOOR_NOTIFICATION_EVENT = 15;

    /**
     * 敲门提醒.
     */
    public static final int KNOCK_DOOR_NOTIFICATION_EVENT = 16;

    /**
     * SOS提醒.
     */
    public static final int SOS_NOTIFICATION_EVENT = 17;


    //********增加用户 的具体事件 ********

    /**
     * 增加指纹用户.
     */
    public static final int ADDUSER_FIGER_EVENT = 18;

    /**
     * 增加密码用户.
     */
    public static final int ADDUSER_PASSWORD_EVENT = 19;

    /**
     * 增加卡用户.
     */
    public static final int ADDUSER_CARD_EVENT = 20;

    /**
     * 增加钥匙用户.
     */
    public static final int ADDUSER_KEY_EVENT = 21;

    /**
     * 增加遥控用户.
     */
    public static final int ADDUSER_REMOTE_CTL_EVENT = 22;

    //******设置防御状态 的具体事件 ********
    /**
     * 布防.
     */
    public static final int DEFENCE_ON_EVENT = 23;

    /**
     * 撤销布防.
     */
    public static final int DEFENCE_OFF_EVENT = 24;


    //********删除用户 的具体事件 ********

    /**
     * 删除指纹用户.
     */
    public static final int DELETEUSER_FIGER_EVENT = 25;

    /**
     * 删除密码用户.
     */
    public static final int DELETEUSER_PASSWORD_EVENT = 26;

    /**
     * 删除卡用户.
     */
    public static final int DELETEUSER_CARD_EVENT = 27;

    /**
     * 删除钥匙用户.
     */
    public static final int DELETEUSER_KEY_EVENT = 28;

    /**
     * 删除遥控用户.
     */
    public static final int DELETEUSER_REMOTE_CTL_EVENT = 29;
}
